package Game;

import java.awt.Graphics;
//import java.awt.Image;


//import java.awt.Toolkit;
//import java.awt.image.ImageObserver;
import java.util.ArrayList;


public class ShotManagerSInvaders 
{		
	static ArrayList<Ball> tiro = new ArrayList<Ball>();;
	static ArrayList<Ball> tiroInm = new ArrayList<Ball>();
	
	private static final long serialVersionUID = 1L;	

	public static void Add(float PersonageX, float PersonageY)
    {
		tiro.add(new Ball(PersonageX, PersonageY, 10, 10, 5, 5));
    }
	
	public static void AddInm(float PersonageX, float PersonageY)
    {
		tiroInm.add(new Ball(PersonageX, PersonageX, 10, 100, 5, 5));
    }
	
	public static void Update()
    {	
    	for(Ball t: tiro)
		t.SpaceInvaders();
    }
	public static void UpdateInm()
    {	
    	for(Ball t: tiroInm)
		t.SpaceInvadersEnemy();
    }
    
    public static void Draw(Graphics g)
    {	
    	
    	for(Ball t: tiro)
		t.Draw(g);
    }
    
    public static void DrawInm(Graphics g)
    {	
    	for(Ball t: tiroInm)
		t.Draw(g);
    }
}
